package com.fishery.processing.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.fishery.processing.entity.ProductBatch;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fishery.processing.entity.vo.BeforeMessageVo;
import com.fishery.processing.entity.vo.ProductBatchVo;
import com.fishery.processing.entity.vo.RootMessageVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author run
 * @since 2021-03-12
 */
public interface ProductBatchService extends IService<ProductBatch> {

    public IPage<ProductBatchVo> getBatchOfFactory(String factoryId, Integer page, Integer size);

    public ProductBatchVo getBatchById(String batchId);

    public boolean setInventoryOfBatch(String batchId, Double weight);

    public RootMessageVo getMessageOfBatch(String batchId);

    public BeforeMessageVo getBeforeMessageOfBatch(String batchId);
}
